package cn.lut;

import cn.lut.service.BuyGoodsService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @user:dell
 * @date:2020年11月02 15:17
 */
public class Mytest {
    @Test
    public void test1(){
        String config="applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(config);
      BuyGoodsService buyGoodsService= (BuyGoodsService) applicationContext.getBean("BuyGoodsService");
      buyGoodsService.buy(1001,10);

    }
}
